//
//  HYBaseHandler.h
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"

//处理理事件成功
typedef void(^SuccessBlock)(id obj);

//处理事件失败
typedef void(^FailedBlock)(NSError *error);

typedef enum{
    GET,
    POST
} RequestType;


@interface HYBaseHandler : NSObject

//注册请求验证码
+ (void)requestCodeRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//忘记密码 验证码 /worker/user/getUpdatePswCode
+ (void)requestGetUpdatePswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//提现密码 验证码 /worker/user/getUpdateWithdrawPswCode
+ (void)requestGetUpdateWithdrawPswCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户注册
+ (void)requestRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//登录
+ (void)requestUserLoginParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户信息 
+ (void)requestGetUserInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//简历信息
+ (void)requestGetWorkerInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改用户信息
+ (void)requestUpdateInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//地区
+ (void)requestAreaParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//保存用户简历
+ (void)requestUpdateWorkerInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//公钥
+ (void)requestPublicKeyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工种
+ (void)requestWorkTypeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//保存工作经历
+ (void)requestExperienceSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//退出登录
+ (void)requestUserLogoutParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//实名认证
+ (void)requestIdentityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//钱包余额 /worker/wallet/mine
+ (void)requestMineWalletParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//钱包明细
+ (void)requestWalletTransactionParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//热门城市
+ (void)requestHotCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//城市列表
+ (void)requestCityParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行列表 /c/bank/findAll
+ (void)requestBankListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加银行卡 /c/bankCard/add
+ (void)requestAddBankCarParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//解绑银行卡 /worker/bankCard/delete
+ (void)requestBankCarddeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行卡列表 /c/bankCard/findAll
+ (void)requestBankCarListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加银行卡请求验证码 /worker/bankCard/getCode
+ (void)requestCodeBankCardParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// 忘记密码
+ (void)requestUpdatePswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//设置提现密码 /worker/user/updateWithdrawPsw
+ (void)requestupdateWithdrawPswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//提现  /worker/withdraw/add
+ (void)requestWithdrawAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//是否设置了提现密码  /worker/withdraw/passwordSetting
+ (void)requestPasswordSettingParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//项目订单列表  /worker/project/mine
+ (void)requestProjectListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//评价列表 /worker/evaluate/page
+ (void)requestEvaluateListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息反馈 /c/msgFeedback/save
+ (void)requestmsgFeedbackParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//关于我们
+ (void)requestAboutUsParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//客服电话
+ (void)requestkefuPhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//帮助中心 /worker/help/findAll
+ (void)requestHelpAllParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//日报列表 /worker/daily/page
+ (void)requestWorkerDailyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加日报 /worker/daily/save
+ (void)requestWorkerSaveDailyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//员工列表 /worker/project/page
+ (void)requestWorkerPeopleListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// 我的空闲日期 /worker/workerFreeDate/mine
+ (void)requestWorkerFreeDateParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// 保存空闲日期 /worker/workerFreeDate/save
+ (void)requestSaveWorkerFreeDateParmers:(NSArray *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//考勤保存 /worker/attendance/save
+ (void)requestSaveAttendanceParmers:(NSArray *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//我的考勤列表 /worker/attendance/mine
+ (void)requestMyAttendanceParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付 
+ (void)requestPayParmers:(NSDictionary *)parmers PayType:(NSInteger)payType Success:(SuccessBlock)success failed:(FailedBlock)failed;

//我的收藏 /worker/collect/mine
+ (void)requestMyCollectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//地图找工厂 /worker/contractor/map
+ (void)requestContractorMapParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//工厂详情 /worker/contractor/select
+ (void)requestContractorDetailParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//招工告示 /worker/project/page
+ (void)requestRecruitmentNoticeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查看项目详情 /worker/project/select
+ (void)requestProjectSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//收藏，取消收藏 /worker/collect/addOrRemove
+ (void)requestCollectAddOrRemoveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//雇主 /worker/employer/select
+ (void)requestEmployerSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//评价 /worker/evaluate/save
+ (void)requestEvaluateSaveParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//报名 SERVER_recomAdd
+ (void)requestRecommendAddParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息
+ (void)requestMessageMineParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//协议
+ (void)requestGetRegistAgreeMentParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通知
+ (void)requestMessageInitParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通知Test
+ (void)requestMessageTestParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查看项目详情
+ (void)requestMessageProjectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;


//接受消息
+ (void)requestQuotationAcceptParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//拒绝消息
+ (void)requestQuotationRefuseParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息是否未读
+ (void)requestMessageIsReadParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

@end
